cmake_minimum_required(VERSION 3.10)
project(case20)

add_executable(main main.cpp)
set_target_properties(main PROPERTIES
    LINK_FLAGS "/MANIFESTUAC:\"level='requireAdministrator' uiAccess='false'\" /SUBSYSTEM:WINDOWS"
)

# /MANIFESTUAC (Embeds UAC information in manifest)
# https://docs.microsoft.com/en-us/cpp/build/reference/manifestuac-embeds-uac-information-in-manifest?view=msvc-160

# visual c++ /MANIFESTUAC linker option doesn't work
# https://stackoverflow.com/questions/51552845/visual-c-manifestuac-linker-option-doesnt-work

# MessageBox () Howto
# https://robbiem01.tripod.com/Tutorials/MessageBox_Demos.html

# MessageBox function (winuser.h)
# https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-messagebox
